/*  
  * Copyright (c) 2024 Beijing University of Posts and Telecommunications. 
  *  
  * Licensed under the Apache License, Version 2.0 (the "License");  
  * you may not use this file except in compliance with the License.  
  * You may obtain a copy of the License at  
  *  
  * http://www.apache.org/licenses/LICENSE-2.0  
  *  
  * Unless required by applicable law or agreed to in writing, software  
  * distributed under the License is distributed on an "AS IS" BASIS,  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
  * See the License for the specific language governing permissions and  
  * limitations under the License.  
  */

import "console"

rule TestCaseRule_CVE_2024_52835
{
	meta:
		data="2024-12-17"
		openharmony_sa=""
		cve="CVE-2024-52835"
		file="/dev/block/platform/fe310000.sdhci/by-name/boot_linux"
		
	strings:
		$b_version = {C8 7E 7D 93 08 05 00 D1 1F 05 40 F1}
		$b_version2 = {08 FD 4C D3 08 11 C0 DA 1F D5 00 71}
	
	condition:
		$b_version and $b_version2 and console.log("CVE-2023-52835 testcase pass")
}